package com.seefly.firstmall.controller.rest;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
@RequestMapping(value = "/api/v1/node")
public class TreeNodeController {
	private static final Logger logger = LoggerFactory.getLogger(TreeNodeController.class);
	
	@RequestMapping(value = "/{id}", method = RequestMethod.GET)
	public String getNode(@PathVariable("id") Long id){
		logger.info("Welcome home rest api.");
		return "home/home";
	}
}
